<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>背景精灵的使用</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        div{
            width: 1120px;
            height: 150px;
            margin: 100px auto;
        }
        div p{
            width: 130px;
            height: 150px;
            float: left;
            margin: 0 5px;
            background: url(../img/zimu.png) no-repeat;
        }
        div .par1{
            background-position: -186px -237px;
        }
        div .par2{
            background-position: -810px -399px;
        }
        div .par3{
            background-position: -810px -237px;
        }
        div .par4{
            background-position: -683px -237px;
        }
        div .par5{
            background-position: -371px -67px;
        }
        div .par6, div .par7{
            background-position: -683px -399px;
        }
    </style>
</head>
<body>
    <div>
        <p class="par1"></p>
        <p class="par2"></p>
        <p class="par3"></p>
        <p class="par4"></p>
        <p></p>
        <p class="par5"></p>
        <p class="par6"></p>
        <p class="par7"></p>
    </div>
</body>
</html>